<include file="Public:header" />
<!--添加文章-->
<form id="info_form" action="{:U('User/setting')}" method="post" enctype="multipart/form-data">
    <div class="pad_lr_10">
        <div class="col_tab">
            <ul class="J_tabs tab_but cu_li">
                <li class="current">模块配置</li>
                <li>第三方登陆</li>
            </ul>
            <div class="J_panes">
                <div class="content_list pad_10">
                    <table width="100%" cellspacing="0" class="table_form">
                        <tr>
                            <th width="120">开启会员注册 :</th>
                            <td>
                              <input type="radio" name="can_reg" value="1" id="yreg" <if condition="$config['can_reg'] eq 1">checked</if>/><label for="yreg">是</label>
                              <input type="radio" name="can_reg" value="0" id="nreg" <if condition="$config['can_reg'] eq 0">checked</if>/><label for="nreg">否</label>
                            </td>
                        </tr>
                        <tr>
                            <th>注册赠送积分 :</th>
                            <td>
                                <input type="text" name="give_point" id="J_point" class="input-text" size="10" value="{$config.reg_point}">
                            </td>
                        </tr>
                        <tr>
                            <th>注册赠送金钱 :</th>
                            <td><input type="text" name="give_money" class="input-text" size="10" value="{$config.reg_money}"></td>
                        </tr>
                        <tr>
                            <th>登录赠送积分:</th>
                            <td><input type="text" name="login_point" class="input-text"  size="10" value="{$config.login_point}" />每日首次登录赠送</td>
                        </tr>
                        <tr>
                            <th>用户添加二手房:</th>
                            <td>
                                <input type="radio" name="used_status" value="3" id="s0" <if condition="$config['used_status'] eq 3">checked</if>/><label for="s0">审核</label>
                                <input type="radio" name="used_status" value="1" id="s1"  <if condition="$config['used_status'] eq 1">checked</if>/><label for="s1">不审核</label>
                            </td>
                        </tr>
                        <tr>
                            <th>用户添加租房:</th>
                            <td>
                                <input type="radio" name="rental_status" value="3" id="r0"  <if condition="$config['rental_status'] eq 3">checked</if>/><label for="r0">审核</label>
                                <input type="radio" name="rental_status" value="1" id="r1"  <if condition="$config['rental_status'] eq 1">checked</if>/><label for="r1">不审核</label>
                            </td>
                        </tr>
                        <tr>
                            <th>用户添加文章:</th>
                            <td>
                                <input type="radio" name="article_status" value="3" id="c0" <if condition="$config['article_status'] eq 3">checked</if>/><label for="c0">审核</label>
                                <input type="radio" name="article_status" value="1" id="c1" <if condition="$config['article_status'] eq 1">checked</if>/><label for="c1">不审核</label>
                            </td>
                        </tr>
                        <tr>
                            <th>用户提交问题:</th>
                            <td>
                                <input type="radio" name="ask_status" value="3" id="a0" <if condition="$config['ask_status'] eq 3">checked</if>/><label for="a0">审核</label>
                                <input type="radio" name="ask_status" value="1" id="a1" <if condition="$config['ask_status'] eq 1">checked</if>/><label for="a1">不审核</label>
                            </td>
                        </tr>
                    </table>
                </div>
                <div class="content_list pad_10 hidden">
                    <table width="100%" cellspacing="0" class="table_form">
                        <tr>
                            <th width="120">qq配置 :</th>
                            <td>
                                <table>
                                    <tr>
                                        <th>APP_KEY:</th>
                                        <td><input type="text" class="input-text" size="40" value="{$config['qq']['appkey']}" name="qq[appkey]" /></td>
                                    </tr>
                                    <tr>
                                        <th>APP_SECRET</th>
                                        <td><input type="text" class="input-text" size="40" value="{$config['qq']['appsecret']}" name="qq[appsecret]" /></td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <!--tr>
                            <th width="120">淘宝配置 :</th>
                            <td>
                                <table>
                                    <tr>
                                        <th>APP_KEY:</th>
                                        <td><input type="text" class="input-text" size="40" value="{$config['tb']['appkey']}" name="tb[appkey]" /></td>
                                    </tr>
                                    <tr>
                                        <th>APP_SECRET</th>
                                        <td><input type="text" class="input-text" size="40" value="{$config['tb']['appsecret']}" name="tb[appsecret]" /></td>
                                    </tr>
                                </table>
                            </td>
                        </tr-->
                        <tr>
                            <th width="120">新浪配置 :</th>
                            <td>
                                <table>
                                    <tr>
                                        <th>APP_KEY:</th>
                                        <td><input type="text" class="input-text" size="40" value="{$config['sina']['appkey']}" name="sina[appkey]" /></td>
                                    </tr>
                                    <tr>
                                        <th>APP_SECRET</th>
                                        <td><input type="text" class="input-text" size="40" value="{$config['sina']['appsecret']}" name="sina[appsecret]" /></td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
            <div class="mt10"><input type="submit" value="{:L('submit')}" id="dosubmit" name="dosubmit" class="btn btn_submit" style="margin:0 0 10px 100px;"><br /><br /><br /></div>
        </div>
    </div>
</form>
<include file="Public:footer" />
<script>
    $(function() {
        $('ul.J_tabs').tabs('div.J_panes > div');
        //颜色选择器
        //$('.J_color_picker').colorpicker();
    });
</script>
</body>
</html>